package com.czztjj.springboottest.mapper;

import com.czztjj.springboottest.entity.PersonMybatis;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PersonMybatisMapper {

    List<PersonMybatis> getFromMysqlByMyBatis();

    PersonMybatis selectOne(@Param("id") int id);

    List<PersonMybatis> selectByAgeAndSex(PersonMybatis personMybatis);

    List<PersonMybatis> selectPersonListByIds(@Param("idList") List<Integer> idList);
}
